function [ hamDist ] = getHamDistMatrix()

M = zeros(256,8);
for i=1:256
    M(i,:)=bitget(i-1,8:-1:1);
end

hamDist = squareform(pdist(M,'hamming'))*8;